title {Rook by Jeff Sieu. Made for Google Code-in 2017}
units mm
put {crowninset.s} tgc V {0 0 58}  H {0 0 0.5999999999999999777955395}  A {16.89118510350817103926602 0 0}  B {0 16.89118510350817103926602 0}  C {16.89118510350817103926602 0 0}  D {0 16.89118510350817103926602 0} 
put {crowninner.s} tgc V {0 0 4}  H {0 0 6}  A {10.16165733953459060501245 0 0}  B {0 10.16165733953459060501245 0}  C {11.34243115837037585436065 0 0}  D {0 11.34243115837037585436065 0} 
put {crowninsetsolid.s} tgc V {0 0 58}  H {0 0 0.5999999999999999777955395}  A {12.45527182860042714196425 0 0}  B {0 12.45527182860042714196425 0}  C {12.45527182860042714196425 0 0}  D {0 12.45527182860042714196425 0} 
put {bottomtor.s} tor V {0 0 9}  H {6.12323399573676603586882E-17 0 1}  r_a 11.78466675885103676080234 r_h 3.825815710827906279689614
put {bottometo.s} eto V {0 0 20}  N {0 0 0.07140720069529053748436098}  C {3.390289200472452524337541 2.031421963671408370544214 2.236416504815224470803514}  r 9.036682630367613100474955 r_d 1.980506679827312765951319
put {crowncut3.s} arb8 V1 {-13.99038105676657828269072 5.767949192431094829203175 4}  V2 {11.9903810567665729536202 -9.232050807568883854514752 4.000000000000001776356839}  V3 {11.9903810567665729536202 -9.232050807568883854514752 10.00000000000000355271368}  V4 {-13.99038105676657828269072 5.767949192431094829203175 10}  V5 {-11.99038105676654808462445 9.232050807568848327377964 4}  V6 {13.99038105676657472997704 -5.767949192431118810020507 4.000000000000001776356839}  V7 {13.99038105676657472997704 -5.767949192431118810020507 10.00000000000000355271368}  V8 {-11.99038105676654808462445 9.232050807568848327377964 10} 
put {crowncut2.s} arb8 V1 {-11.99038105676656940090652 -9.232050807568908723510503 3.999999999999998223643161}  V2 {13.99038105676658183540439 5.767949192431108151879471 3.99999999999999866773237}  V3 {13.99038105676658538811807 5.767949192431077065634781 10.00000000000000355271368}  V4 {-11.99038105676654453191077 -9.232050807568926487078897 10}  V5 {-13.99038105676658716447491 -5.767949192431157889870974 3.99999999999999866773237}  V6 {11.99038105676657472997704 9.232050807568862538232679 3.99999999999999911182158}  V7 {11.990381056766564071836 9.232050807568855432805321 10.00000000000000355271368}  V8 {-13.99038105676657472997704 -5.767949192431152560800456 10} 
put {crowncut1.s} arb8 V1 {1.999999999999999777955395 -14.99999999999999822364316 4}  V2 {1.999999999999999777955395 14.99999999999999822364316 4}  V3 {1.999999999999999777955395 14.99999999999999822364316 10}  V4 {1.999999999999999777955395 -14.99999999999999822364316 10}  V5 {-1.999999999999999777955395 -14.99999999999999822364316 4}  V6 {-1.999999999999999777955395 14.99999999999999822364316 4}  V7 {-1.999999999999999777955395 14.99999999999999822364316 10}  V8 {-1.999999999999999777955395 -14.99999999999999822364316 10} 
put {crownrcc.s} tgc V {0 0 -2.292185375575158445826673}  H {0 0 12.29218537557515844582667}  A {14.16165733953459238136929 0 0}  B {0 14.16165733953459238136929 0}  C {14.16165733953459238136929 0 0}  D {0 14.16165733953459238136929 0} 
put {bodyjut.s} tgc V {0 0 42}  H {0 0 2.264716425774114583191476}  A {14.1579783735264754795935 0 0}  B {0 14.1579783735264754795935 0}  C {14.1579783735264754795935 0 0}  D {0 14.1579783735264754795935 0} 
put {bodytor.s} tor V {0 0 25}  H {6.12323399573676603586882E-17 0 1}  r_a 10.44723380101833853927928 r_h 0.9710977822416242410952236
put {bodytop.s} tgc V {0 0 45.57436401080622090375982}  H {0 0 10.23282399021384136972301}  A {14.1579783735264754795935 0 0}  B {0 14.1579783735264754795935 0}  C {14.1579783735264754795935 0 0}  D {0 14.1579783735264754795935 0} 
put {bodycut.s} tor V {0 0 41}  H {6.12323399573676603586882E-17 0 1}  r_a 86.63076947877770805916953 r_h 78.38786126059979153524182
put {bodyeto.s} eto V {-0.2528320000000000011830537 0 53}  N {0 0 0.03930267507158188844407221}  C {11.02968444236560330296015 0 11.02968444236560330296015}  r 16.28367943394245997978942 r_d 4.327199580192768735287245
put {baseeto.s} eto V {0 0 5}  N {-5.470978323999804257192075E-18 0 -0.04467392825269222295103688}  C {9.315747832292275987242647 -1.365449293915910411456593 -4.391804451322707691929281}  r 10.59850529883725656077331 r_d 4.265499428605880716247611
put {bodytop.c} comb region no tree {- {l bodytop.s} {l bodyeto.s}}
put {bottom.c} comb region no tree {u {u {l bottometo.s} {l bottomtor.s}} {u {l baseeto.s} {l base_filler.s}}}
put {crown.c} comb region no tree {u {- {- {- {- {- {l crownrcc.s {1 0 0 0  0 1 0 0  0 0 1 58  0 0 0 1}} {l crowninner.s {1 0 0 0  0 1 0 0  0 0 1 58  0 0 0 1}}} {l crowncut1.s {1 0 0 0  0 1 0 0  0 0 1 58  0 0 0 1}}} {l crowncut2.s {1 0 0 0  0 1 0 0  0 0 1 58  0 0 0 1}}} {l crowncut3.s {1 0 0 0  0 1 0 0  0 0 1 58  0 0 0 1}}} {l crowninset.s}} {l crowninsetsolid.s}}
put {scene.g} comb region no tree {u {l rook.r} {l tile.r}}
put {body.s} tgc V {0 0 5.912562917080187219198706}  H {0 0 49.90908570176724623479458}  A {14.1579783735264754795935 0 0}  B {0 14.1579783735264754795935 0}  C {14.1579783735264754795935 0 0}  D {0 14.1579783735264754795935 0} 
put {rook.r} comb region yes tree {l rook.c {1 0 0 0  0 1 0 0  0 0 1 1.090422  0 0 0 1}}
attr set {rook.r} {region} {R} {shader} {plastic {re 0.1 sp 0.9 di 0.1 sh 50 ex 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/217}
put {tile.s} arb8 V1 {28.5 -28.5 0}  V2 {28.5 28.5 0}  V3 {28.5 28.5 -1}  V4 {28.5 -28.5 -1}  V5 {-28.5 -28.5 0}  V6 {-28.5 28.5 0}  V7 {-28.5 28.5 -1}  V8 {-28.5 -28.5 -1} 
put {tile.r} comb region yes tree {l tile.s}
attr set {tile.r} {oshader} {plastic {sh 1}} {region} {R} {shader} {plastic {re 0.5 sh 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/255}
put {body.c} comb region no tree {u {u {- {l body.s} {l bodycut.s}} {l bodytor.s}} {l bodyjut.s}}
put {rook.c} comb region no tree {u {u {l crown.c} {l body.c}} {u {l bottom.c} {l bodytop.c}}}
put {base_filler.s} tgc V {0 0 -0.8138631382182293094729175}  H {0 0 12.74035922868059600432389}  A {16.38855503646686528895771 0 0}  B {0 16.38855503646686528895771 0}  C {9.863417071382475143082047 0 0}  D {0 4.931708535691237571541023 0} 
